package com.shanghaionstar.remote.manager;


import java.util.Map;

import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.HeaderMap;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Url;
import rx.Observable;

/**
 * Created by onstarios on 2017/7/14.
 */

public interface VehicleService {
    String PATH = "/api/v1/account";

    @POST
    Observable<PollingResponse> commands(@Url String url, @HeaderMap Map<String, String> headers, @Body String body);


//    @POST(PATH + "/vehicles/{vin}/navUnit/commands/{commandType}")
//    Observable<PollingResponse> commandsODD(@Path("vin") String vin,@Path("commandType") String commandType,@HeaderMap Map<String, String> headers, @Body String body);
//
////    /vehicles/{vin}/hotspot/commands/
//    @POST(PATH + "/vehicles/{vin}/hotspot/commands/{commandType}")
//    Observable<PollingResponse> commandsHotSpot(@Path("vin") String vin,@Path("commandType") String commandType,@HeaderMap Map<String, String> headers, @Body String body);

    @GET(PATH + "/vehicles/{vin}/requests/{requestId}")
    Observable<PollingResponse> pollingVehicleStatus(@Path("vin") String vin,
                                            @Path("requestId") String requestId, @HeaderMap Map<String, String> headers);
}
